'''
@Owner dYrolign and DERFDY 2025.
@Author dYrolign.
@Contibutor iKeinsan, Werstog, Leoitsenn.
@DateCreated 2025/9/23.
'''

from math import sqrt as sqrt

a = float(input("a:"))
b = float(input("b:"))
c = float(input("c:"))

delta = pow(b,2)-4*a*c

try:
    x1,x2 = (-b-sqrt(delta))/(2*a),(-b+sqrt(delta))/(2*a)
    print("One root of the equation is "+str(x1))
    print("One root of the equation is "+str(x2))
except ValueError:
    x1,x2 = (-b-sqrt(-delta))/(2*a),(-b+sqrt(-delta))/(2*a)
    print("此方程无实根")
    print("This equation has no real root, but there are two roots in the complex field.")
    print("One root of the equation is "+str(x1)+"i")
    print("One root of the equation is "+str(x2)+"i")